/**
 * Created by IntelliJ IDEA
 *
 * @author zhengjie
 * @Date:2022/2/14 15:02
 * @Version 1.0
 */
package com.zj.ssm.controller;

import com.zj.ssm.pojo.domain.query.RecordQuery;
import com.zj.ssm.result.AjaxResult;
import com.zj.ssm.service.RecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("record")
public class RecordController {

    @Autowired
    private RecordService recordService;

    @RequestMapping("query")
    public AjaxResult query(RecordQuery query){
        return recordService.query(query);
    }

    @RequestMapping("querydata")
    public AjaxResult querydata(Integer id){
        return recordService.querydata(id);
    }

}
